package com.road.vast.department.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.road.vast.pojo.company.CoDepartment;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 郭泽鹏
 * @since 2020-07-10
 */
public interface CoDepartmentService extends IService<CoDepartment> {
    /**
     * 保存部门信息
     */
    public Integer saveDepartment(CoDepartment coDepartment);

    /**
     * 更新部门信息
     */
    public Integer updateDepartment(CoDepartment coDepartment);

    /**
     * 通过id查询
     */
    public CoDepartment findById(String id);

    /**
     * 通过企业id查询
     */
    public List<CoDepartment> findAll(String companyId);

    /**
     * 根据id删除部门
     */
    public Integer deleteCoDepartment(String id);
}
